Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲 Fix old programs in program page, improve filtering teacher programs #5197

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

jpelay
Copy link
Member

@jpelay jpelay commented Feb 29, 2024

Same thing happened to us back in #4417. Some old programs don't have the field adventure_name in them, and thus our systems fails. I also improve a bit the filtering of programs, by not using the program name, but rather the adventure name.

I also have a question, what to do with programs that might have an id that's neither in the DB or our own contents? Right now, Im resorting to just show the id, but perhaps we should skip them? What do you think?

image

How to test

Go to My Programs page, it should be working.

If you want to see a program with a non-existing adventure linked, copy an existing program record in the dev_dabase.json and change the adventure_name field to something that's not present in the database.

Copy link
Member

@Felienne Felienne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

Copy link
Contributor

mergify bot commented Mar 1, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit b39489e into main Mar 1, 2024
11 checks passed
@mergify mergify bot deleted the fix_programs_page_2 branch March 1, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants